package com.bml.architect.rocketmq.consumer;

import org.apache.rocketmq.spring.annotation.ConsumeMode;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(consumerGroup = "springbootConsumerGroup",topic = "springBoot-Topic",consumeMode = ConsumeMode.CONCURRENTLY)
public class DefaultConsumer implements RocketMQListener<String> {


    @Override
    public void onMessage(String s) {

        System.out.println("Recive message is "+ s);

    }
}
